Optimal. Leaf size=133 \[ \frac {\cos (e+f x) (a+a \sin (e+f x))^{7/2}}{12 f (c-c \sin (e+f x))^{13/2}}+\frac {\cos (e+f x) (a+a \sin (e+f x))^{7/2}}{60 c f (c-c \sin (e+f x))^{11/2}}+\frac {\cos (e+f x) (a+a \sin (e+f x))^{7/2}}{480 c^2 f (c-c \sin (e+f x))^{9/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.19, antiderivative size = 133, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.067, Rules used = {2822, 2821}
\begin {gather*} \frac {\cos (e+f x) (a \sin (e+f x)+a)^{7/2}}{480 c^2 f (c-c \sin (e+f x))^{9/2}}+\frac {\cos (e+f x) (a \sin (e+f x)+a)^{7/2}}{60 c f (c-c \sin (e+f x))^{11/2}}+\frac {\cos (e+f x) (a \sin (e+f x)+a)^{7/2}}{12 f (c-c \sin (e+f x))^{13/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2821
Rule 2822
Rubi steps
\begin {align*} \int \frac {(a+a \sin (e+f x))^{7/2}}{(c-c \sin (e+f x))^{13/2}} \, dx &=\frac {\cos (e+f x) (a+a \sin (e+f x))^{7/2}}{12 f (c-c \sin (e+f x))^{13/2}}+\frac {\int \frac {(a+a \sin (e+f x))^{7/2}}{(c-c \sin (e+f x))^{11/2}} \, dx}{6 c}\\ &=\frac {\cos (e+f x) (a+a \sin (e+f x))^{7/2}}{12 f (c-c \sin (e+f x))^{13/2}}+\frac {\cos (e+f x) (a+a \sin (e+f x))^{7/2}}{60 c f (c-c \sin (e+f x))^{11/2}}+\frac {\int \frac {(a+a \sin (e+f x))^{7/2}}{(c-c \sin (e+f x))^{9/2}} \, dx}{60 c^2}\\ &=\frac {\cos (e+f x) (a+a \sin (e+f x))^{7/2}}{12 f (c-c \sin (e+f x))^{13/2}}+\frac {\cos (e+f x) (a+a \sin (e+f x))^{7/2}}{60 c f (c-c \sin (e+f x))^{11/2}}+\frac {\cos (e+f x) (a+a \sin (e+f x))^{7/2}}{480 c^2 f (c-c \sin (e+f x))^{9/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 6.18, size = 128, normalized size = 0.96 \begin {gather*} \frac {a^3 \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right ) \sqrt {a (1+\sin (e+f x))} (21-15 \cos (2 (e+f x))+39 \sin (e+f x)-5 \sin (3 (e+f x)))}{60 c^6 f \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right ) (-1+\sin (e+f x))^6 \sqrt {c-c \sin (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(275\) vs.
\(2(115)=230\).
time = 17.08, size = 276, normalized size = 2.08
method | result | size |
default | \(\frac {\sin \left (f x +e \right ) \left (a \left (1+\sin \left (f x +e \right )\right )\right )^{\frac {7}{2}} \left (3 \left (\cos ^{6}\left (f x +e \right )\right )-3 \left (\cos ^{5}\left (f x +e \right )\right ) \sin \left (f x +e \right )+18 \left (\cos ^{5}\left (f x +e \right )\right )+21 \sin \left (f x +e \right ) \left (\cos ^{4}\left (f x +e \right )\right )-72 \left (\cos ^{4}\left (f x +e \right )\right )+51 \left (\cos ^{3}\left (f x +e \right )\right ) \sin \left (f x +e \right )-106 \left (\cos ^{3}\left (f x +e \right )\right )-157 \sin \left (f x +e \right ) \left (\cos ^{2}\left (f x +e \right )\right )+235 \left (\cos ^{2}\left (f x +e \right )\right )-78 \cos \left (f x +e \right ) \sin \left (f x +e \right )+118 \cos \left (f x +e \right )+196 \sin \left (f x +e \right )-196\right )}{30 f \left (-c \left (\sin \left (f x +e \right )-1\right )\right )^{\frac {13}{2}} \left (\cos ^{4}\left (f x +e \right )+\left (\cos ^{3}\left (f x +e \right )\right ) \sin \left (f x +e \right )+3 \left (\cos ^{3}\left (f x +e \right )\right )-4 \sin \left (f x +e \right ) \left (\cos ^{2}\left (f x +e \right )\right )-8 \left (\cos ^{2}\left (f x +e \right )\right )-4 \cos \left (f x +e \right ) \sin \left (f x +e \right )-4 \cos \left (f x +e \right )+8 \sin \left (f x +e \right )+8\right )}\) | \(276\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 191, normalized size = 1.44 \begin {gather*} \frac {{\left (15 \, a^{3} \cos \left (f x + e\right )^{2} - 18 \, a^{3} + 2 \, {\left (5 \, a^{3} \cos \left (f x + e\right )^{2} - 11 \, a^{3}\right )} \sin \left (f x + e\right )\right )} \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {-c \sin \left (f x + e\right ) + c}}{30 \, {\left (c^{7} f \cos \left (f x + e\right )^{7} - 18 \, c^{7} f \cos \left (f x + e\right )^{5} + 48 \, c^{7} f \cos \left (f x + e\right )^{3} - 32 \, c^{7} f \cos \left (f x + e\right ) + 2 \, {\left (3 \, c^{7} f \cos \left (f x + e\right )^{5} - 16 \, c^{7} f \cos \left (f x + e\right )^{3} + 16 \, c^{7} f \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.52, size = 164, normalized size = 1.23 \begin {gather*} \frac {{\left (20 \, a^{3} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{6} - 45 \, a^{3} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} + 36 \, a^{3} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - 10 \, a^{3} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )\right )} \sqrt {a}}{480 \, c^{\frac {13}{2}} f \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{12}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 12.06, size = 330, normalized size = 2.48 \begin {gather*} -\frac {\sqrt {c-c\,\sin \left (e+f\,x\right )}\,\left (\frac {224\,a^3\,{\mathrm {e}}^{e\,7{}\mathrm {i}+f\,x\,7{}\mathrm {i}}\,\sqrt {a+a\,\sin \left (e+f\,x\right )}}{5\,c^7\,f}+\frac {416\,a^3\,{\mathrm {e}}^{e\,7{}\mathrm {i}+f\,x\,7{}\mathrm {i}}\,\sin \left (e+f\,x\right )\,\sqrt {a+a\,\sin \left (e+f\,x\right )}}{5\,c^7\,f}-\frac {32\,a^3\,{\mathrm {e}}^{e\,7{}\mathrm {i}+f\,x\,7{}\mathrm {i}}\,\cos \left (2\,e+2\,f\,x\right )\,\sqrt {a+a\,\sin \left (e+f\,x\right )}}{c^7\,f}-\frac {32\,a^3\,{\mathrm {e}}^{e\,7{}\mathrm {i}+f\,x\,7{}\mathrm {i}}\,\sin \left (3\,e+3\,f\,x\right )\,\sqrt {a+a\,\sin \left (e+f\,x\right )}}{3\,c^7\,f}\right )}{-858\,\cos \left (e+f\,x\right )\,{\mathrm {e}}^{e\,7{}\mathrm {i}+f\,x\,7{}\mathrm {i}}+858\,{\mathrm {e}}^{e\,7{}\mathrm {i}+f\,x\,7{}\mathrm {i}}\,\cos \left (3\,e+3\,f\,x\right )-130\,{\mathrm {e}}^{e\,7{}\mathrm {i}+f\,x\,7{}\mathrm {i}}\,\cos \left (5\,e+5\,f\,x\right )+2\,{\mathrm {e}}^{e\,7{}\mathrm {i}+f\,x\,7{}\mathrm {i}}\,\cos \left (7\,e+7\,f\,x\right )+1144\,{\mathrm {e}}^{e\,7{}\mathrm {i}+f\,x\,7{}\mathrm {i}}\,\sin \left (2\,e+2\,f\,x\right )-416\,{\mathrm {e}}^{e\,7{}\mathrm {i}+f\,x\,7{}\mathrm {i}}\,\sin \left (4\,e+4\,f\,x\right )+24\,{\mathrm {e}}^{e\,7{}\mathrm {i}+f\,x\,7{}\mathrm {i}}\,\sin \left (6\,e+6\,f\,x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________